$().ready( function() {

    $("#UserEditForm").validate( {
        rules: {
            "data[User][name]": {
                required: true,
                rangelength: [3,45]
            },
            "data[User][enabled]": {
                required: true
            },
            "data[User][deleted]": {
                required: true
            }
        },
        messages: {
            "data[User][name]": {
                required: "<?php __('Ingrese el nombre') ?>",
                rangelength: "<?php __('Ingrese entre 3 y 45 caracteres') ?>"
            },
            "data[User][enabled]": {
                required: "<?php __('Seleccione') ?>"
            },
            "data[User][deleted]": {
                required: "<?php __('Seleccione') ?>"
            }
        }

    } );
} );